package scauCmiScaffolding.compiled;

import org.eclipse.jet.JET2Context;
import org.eclipse.jet.JET2Template;
import org.eclipse.jet.JET2Writer;
import org.eclipse.jet.taglib.RuntimeTagElement;
import org.eclipse.jet.taglib.TagInfo;

public class _jet_findEntityByPrimaryKey_6 implements JET2Template {
    private static final String _jetns_c = "org.eclipse.jet.controlTags"; //$NON-NLS-1$
    private static final String _jetns_java = "org.eclipse.jet.javaTags"; //$NON-NLS-1$

    public _jet_findEntityByPrimaryKey_6() {
        super();
    }

    private static final String NL = System.getProperty("line.separator"); //$NON-NLS-1$
    
    private static final TagInfo _td_java_format_1_1 = new TagInfo("java:format", //$NON-NLS-1$
            1, 1,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_get_2_9 = new TagInfo("c:get", //$NON-NLS-1$
            2, 9,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_2_64 = new TagInfo("c:get", //$NON-NLS-1$
            2, 64,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_iterate_2_127 = new TagInfo("c:iterate", //$NON-NLS-1$
            2, 127,
            new String[] {
                "select", //$NON-NLS-1$
                "var", //$NON-NLS-1$
            },
            new String[] {
                "$eachTable/primaryKeys/column", //$NON-NLS-1$
                "primaryKey", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_2_195 = new TagInfo("c:get", //$NON-NLS-1$
            2, 195,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "($primaryKey/@javaType)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_choose_2_237 = new TagInfo("c:choose", //$NON-NLS-1$
            2, 237,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_when_2_247 = new TagInfo("c:when", //$NON-NLS-1$
            2, 247,
            new String[] {
                "test", //$NON-NLS-1$
            },
            new String[] {
                "$primaryKey/@order=$pcolCount", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_2_292 = new TagInfo("c:get", //$NON-NLS-1$
            2, 292,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($primaryKey/@field)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_otherwise_2_354 = new TagInfo("c:otherwise", //$NON-NLS-1$
            2, 354,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_get_2_367 = new TagInfo("c:get", //$NON-NLS-1$
            2, 367,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($primaryKey/@field)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_java_import_2_467 = new TagInfo("java:import", //$NON-NLS-1$
            2, 467,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_get_4_9 = new TagInfo("c:get", //$NON-NLS-1$
            4, 9,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_4_64 = new TagInfo("c:get", //$NON-NLS-1$
            4, 64,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_iterate_4_127 = new TagInfo("c:iterate", //$NON-NLS-1$
            4, 127,
            new String[] {
                "select", //$NON-NLS-1$
                "var", //$NON-NLS-1$
            },
            new String[] {
                "$eachTable/primaryKeys/column", //$NON-NLS-1$
                "primaryKey", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_4_195 = new TagInfo("c:get", //$NON-NLS-1$
            4, 195,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "($primaryKey/@javaType)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_4_237 = new TagInfo("c:get", //$NON-NLS-1$
            4, 237,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($primaryKey/@field)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_java_import_4_341 = new TagInfo("java:import", //$NON-NLS-1$
            4, 341,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_get_6_13 = new TagInfo("c:get", //$NON-NLS-1$
            6, 13,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_6_69 = new TagInfo("c:get", //$NON-NLS-1$
            6, 69,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );

    public void generate(final JET2Context context, final JET2Writer __out) {
        JET2Writer out = __out;
        RuntimeTagElement _jettag_java_format_1_1 = context.getTagFactory().createRuntimeTag(_jetns_java, "format", "java:format", _td_java_format_1_1); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_java_format_1_1.setRuntimeParent(null);
        _jettag_java_format_1_1.setTagInfo(_td_java_format_1_1);
        _jettag_java_format_1_1.doStart(context, out);
        JET2Writer _jettag_java_format_1_1_saved_out = out;
        while (_jettag_java_format_1_1.okToProcessBody()) {
            out = out.newNestedContentWriter();
            out.write(NL);         
            out.write("\tpublic ");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_2_9 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_2_9); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_2_9.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_2_9.setTagInfo(_td_c_get_2_9);
            _jettag_c_get_2_9.doStart(context, out);
            _jettag_c_get_2_9.doEnd();
            out.write(" find");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_2_64 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_2_64); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_2_64.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_2_64.setTagInfo(_td_c_get_2_64);
            _jettag_c_get_2_64.doStart(context, out);
            _jettag_c_get_2_64.doEnd();
            out.write("ByPrimaryKey(");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_iterate_2_127 = context.getTagFactory().createRuntimeTag(_jetns_c, "iterate", "c:iterate", _td_c_iterate_2_127); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_iterate_2_127.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_iterate_2_127.setTagInfo(_td_c_iterate_2_127);
            _jettag_c_iterate_2_127.doStart(context, out);
            while (_jettag_c_iterate_2_127.okToProcessBody()) {
                out.write(" ");  //$NON-NLS-1$        
                RuntimeTagElement _jettag_c_get_2_195 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_2_195); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_c_get_2_195.setRuntimeParent(_jettag_c_iterate_2_127);
                _jettag_c_get_2_195.setTagInfo(_td_c_get_2_195);
                _jettag_c_get_2_195.doStart(context, out);
                _jettag_c_get_2_195.doEnd();
                out.write(" ");  //$NON-NLS-1$        
                RuntimeTagElement _jettag_c_choose_2_237 = context.getTagFactory().createRuntimeTag(_jetns_c, "choose", "c:choose", _td_c_choose_2_237); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_c_choose_2_237.setRuntimeParent(_jettag_c_iterate_2_127);
                _jettag_c_choose_2_237.setTagInfo(_td_c_choose_2_237);
                _jettag_c_choose_2_237.doStart(context, out);
                JET2Writer _jettag_c_choose_2_237_saved_out = out;
                while (_jettag_c_choose_2_237.okToProcessBody()) {
                    out = out.newNestedContentWriter();
                    RuntimeTagElement _jettag_c_when_2_247 = context.getTagFactory().createRuntimeTag(_jetns_c, "when", "c:when", _td_c_when_2_247); //$NON-NLS-1$ //$NON-NLS-2$
                    _jettag_c_when_2_247.setRuntimeParent(_jettag_c_choose_2_237);
                    _jettag_c_when_2_247.setTagInfo(_td_c_when_2_247);
                    _jettag_c_when_2_247.doStart(context, out);
                    JET2Writer _jettag_c_when_2_247_saved_out = out;
                    while (_jettag_c_when_2_247.okToProcessBody()) {
                        out = out.newNestedContentWriter();
                        RuntimeTagElement _jettag_c_get_2_292 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_2_292); //$NON-NLS-1$ //$NON-NLS-2$
                        _jettag_c_get_2_292.setRuntimeParent(_jettag_c_when_2_247);
                        _jettag_c_get_2_292.setTagInfo(_td_c_get_2_292);
                        _jettag_c_get_2_292.doStart(context, out);
                        _jettag_c_get_2_292.doEnd();
                        out.write(" ");  //$NON-NLS-1$        
                        _jettag_c_when_2_247.handleBodyContent(out);
                    }
                    out = _jettag_c_when_2_247_saved_out;
                    _jettag_c_when_2_247.doEnd();
                    RuntimeTagElement _jettag_c_otherwise_2_354 = context.getTagFactory().createRuntimeTag(_jetns_c, "otherwise", "c:otherwise", _td_c_otherwise_2_354); //$NON-NLS-1$ //$NON-NLS-2$
                    _jettag_c_otherwise_2_354.setRuntimeParent(_jettag_c_choose_2_237);
                    _jettag_c_otherwise_2_354.setTagInfo(_td_c_otherwise_2_354);
                    _jettag_c_otherwise_2_354.doStart(context, out);
                    JET2Writer _jettag_c_otherwise_2_354_saved_out = out;
                    while (_jettag_c_otherwise_2_354.okToProcessBody()) {
                        out = out.newNestedContentWriter();
                        RuntimeTagElement _jettag_c_get_2_367 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_2_367); //$NON-NLS-1$ //$NON-NLS-2$
                        _jettag_c_get_2_367.setRuntimeParent(_jettag_c_otherwise_2_354);
                        _jettag_c_get_2_367.setTagInfo(_td_c_get_2_367);
                        _jettag_c_get_2_367.doStart(context, out);
                        _jettag_c_get_2_367.doEnd();
                        out.write(", ");  //$NON-NLS-1$        
                        _jettag_c_otherwise_2_354.handleBodyContent(out);
                    }
                    out = _jettag_c_otherwise_2_354_saved_out;
                    _jettag_c_otherwise_2_354.doEnd();
                    _jettag_c_choose_2_237.handleBodyContent(out);
                }
                out = _jettag_c_choose_2_237_saved_out;
                _jettag_c_choose_2_237.doEnd();
                _jettag_c_iterate_2_127.handleBodyContent(out);
            }
            _jettag_c_iterate_2_127.doEnd();
            out.write(") throws ");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_java_import_2_467 = context.getTagFactory().createRuntimeTag(_jetns_java, "import", "java:import", _td_java_import_2_467); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_java_import_2_467.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_java_import_2_467.setTagInfo(_td_java_import_2_467);
            _jettag_java_import_2_467.doStart(context, out);
            JET2Writer _jettag_java_import_2_467_saved_out = out;
            while (_jettag_java_import_2_467.okToProcessBody()) {
                out = out.newNestedContentWriter();
                out.write("org.springframework.dao.DataAccessException");  //$NON-NLS-1$        
                _jettag_java_import_2_467.handleBodyContent(out);
            }
            out = _jettag_java_import_2_467_saved_out;
            _jettag_java_import_2_467.doEnd();
            out.write(";");  //$NON-NLS-1$        
            out.write(NL);         
            out.write(NL);         
            out.write("\tpublic ");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_4_9 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_4_9); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_4_9.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_4_9.setTagInfo(_td_c_get_4_9);
            _jettag_c_get_4_9.doStart(context, out);
            _jettag_c_get_4_9.doEnd();
            out.write(" find");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_4_64 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_4_64); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_4_64.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_4_64.setTagInfo(_td_c_get_4_64);
            _jettag_c_get_4_64.doStart(context, out);
            _jettag_c_get_4_64.doEnd();
            out.write("ByPrimaryKey(");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_iterate_4_127 = context.getTagFactory().createRuntimeTag(_jetns_c, "iterate", "c:iterate", _td_c_iterate_4_127); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_iterate_4_127.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_iterate_4_127.setTagInfo(_td_c_iterate_4_127);
            _jettag_c_iterate_4_127.doStart(context, out);
            while (_jettag_c_iterate_4_127.okToProcessBody()) {
                out.write(" ");  //$NON-NLS-1$        
                RuntimeTagElement _jettag_c_get_4_195 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_4_195); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_c_get_4_195.setRuntimeParent(_jettag_c_iterate_4_127);
                _jettag_c_get_4_195.setTagInfo(_td_c_get_4_195);
                _jettag_c_get_4_195.doStart(context, out);
                _jettag_c_get_4_195.doEnd();
                out.write(" ");  //$NON-NLS-1$        
                RuntimeTagElement _jettag_c_get_4_237 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_4_237); //$NON-NLS-1$ //$NON-NLS-2$
                _jettag_c_get_4_237.setRuntimeParent(_jettag_c_iterate_4_127);
                _jettag_c_get_4_237.setTagInfo(_td_c_get_4_237);
                _jettag_c_get_4_237.doStart(context, out);
                _jettag_c_get_4_237.doEnd();
                out.write(", ");  //$NON-NLS-1$        
                _jettag_c_iterate_4_127.handleBodyContent(out);
            }
            _jettag_c_iterate_4_127.doEnd();
            out.write(" int startResult, int maxRows) throws ");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_java_import_4_341 = context.getTagFactory().createRuntimeTag(_jetns_java, "import", "java:import", _td_java_import_4_341); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_java_import_4_341.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_java_import_4_341.setTagInfo(_td_java_import_4_341);
            _jettag_java_import_4_341.doStart(context, out);
            JET2Writer _jettag_java_import_4_341_saved_out = out;
            while (_jettag_java_import_4_341.okToProcessBody()) {
                out = out.newNestedContentWriter();
                out.write("org.springframework.dao.DataAccessException");  //$NON-NLS-1$        
                _jettag_java_import_4_341.handleBodyContent(out);
            }
            out = _jettag_java_import_4_341_saved_out;
            _jettag_java_import_4_341.doEnd();
            out.write(";");  //$NON-NLS-1$        
            out.write(NL);         
            out.write(NL);         
            out.write("\tpublic Set<");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_6_13 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_6_13); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_6_13.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_6_13.setTagInfo(_td_c_get_6_13);
            _jettag_c_get_6_13.doStart(context, out);
            _jettag_c_get_6_13.doEnd();
            out.write("> find");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_6_69 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_6_69); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_6_69.setRuntimeParent(_jettag_java_format_1_1);
            _jettag_c_get_6_69.setTagInfo(_td_c_get_6_69);
            _jettag_c_get_6_69.doStart(context, out);
            _jettag_c_get_6_69.doEnd();
            out.write("sByIds(Set<Integer> ids) throws DataAccessException;");  //$NON-NLS-1$        
            out.write(NL);         
            _jettag_java_format_1_1.handleBodyContent(out);
        }
        out = _jettag_java_format_1_1_saved_out;
        _jettag_java_format_1_1.doEnd();
        out.write(NL);         
    }
}
